package cc.lzmsh.service;

import cc.lzmsh.pojo.Article;
import cc.lzmsh.pojo.result.PageBean;
import cc.lzmsh.pojo.result.Result;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;

/**
 * Author:   msh
 * Date:     2024/9/26 下午2:42
 * Description:
 */
public interface ArticleService {
    Result addArticle(Article article);

    Result<PageBean<Article>> list(Integer pageNum, Integer pageSize, String categoryId, String state);

    Result getArticleById(Integer id);

    Result updateArticle(Article article);

    Result deleteArticle(Integer id);

    Result upload(String filename, InputStream file);
}
